package com.xrtn.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.InputStream;
import java.util.Map;

public interface UploadFileService {

	Map<String,Object> uploadImageToServer(MultipartFile imageFile, HttpServletRequest request);

    Map<String,Object> uploadAliOSS(InputStream imageFile, String imageName, HttpServletRequest request,Map<String,Object> params);

	Map<String, Object> webImgCrop(String imgUrl, double imgW, double imgH, Integer imgX1, Integer imgY1, Integer cropW, Integer cropH, HttpServletRequest request);

    /**
     * 导出预约信息
     * @param request
     * @param response
     * @param params
     */
	void exportBookingList(HttpServletRequest request, HttpServletResponse response,Map<String,Object>params);

    /**
     * 导出患者列表
     * @param request
     * @param response
     * @param params
     */
    void exportPatientList(HttpServletRequest request, HttpServletResponse response,Map<String,Object>params);
    /**
     * 导出病例列表
     * @param request
     * @param response
     * @param params
     */
    void exportTreatmentList(HttpServletRequest request, HttpServletResponse response,Map<String,Object>params);
    /**
     * 导出商品统计
     * @param request
     * @param response
     * @param params
     */
    void exportOrderList(HttpServletRequest request, HttpServletResponse response,Map<String,Object>params);

    /**
     * 导入会员信息
     * @param excelFile
     * @param request
     */
    void importUserExcel(MultipartFile excelFile,HttpServletRequest request,HttpServletResponse response, Map<String,Object> params);

    /**
     * 导入患者信息
     * @param excelFile
     * @param request
     * @param response
     * @param params
     */
    void importPatientExcel(MultipartFile excelFile,HttpServletRequest request,HttpServletResponse response, Map<String,Object> params);
}
